package com.tct.worktimeboard.service;

import com.alibaba.fastjson.JSONObject;
import com.tct.worktimeboard.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liyongkui
 * @since 2021-02-25
 */
public interface IUserInfoService extends IService<UserInfo> {

    JSONObject getHavePowerByWorkTime(Long userId);

    JSONObject getInitPowerUserList(Long userId);

    JSONObject getUserInfo(Long userId);

    JSONObject refreshDept(List<String> deptList);

    List<Long> getUserIdByName(List<String> nameList);

    int addPowerByUserId(Long powerId, List<Long> nameList);

    JSONObject getUserIdByAccount(String account);
}
